import axios, { baseURL } from "./http";

export async function getAllStaff(): Promise<any> {
  const result = await axios.get(`${baseURL}/getAllStaff`);
  return result;
}

export async function setPermission(userId: number, permission: number) {

  const result = await axios.post(`${baseURL}/setPermission`, {
    user_id: userId,
    permission
  });
  return result;
}
